spi: bfin_spi6xx: Remove unnecessary test for bus and pins[bus]
authorAxel Lin <[email protected]>
Mon, 2 Dec 2013 04:57:44 +0000 (12:57 +0800)
committerSonic Zhang <[email protected]>
Fri, 6 Dec 2013 08:06:51 +0000 (16:06 +0800)
commit9bac8f77698771165def23b9eebad536d5b5cd6d
treef035cb652dbbd992bf0dd97389980998e966228a
parent727cbe14b25b492bc9b96ad9d1f5f881d833028e
spi: bfin_spi6xx: Remove unnecessary test for bus and pins[bus]

For invalid bus number, current code returns NULL in the default case of
switch-case statements. In additional, pins[bus] is always not NULL because
it is the address of specific row of the two-dimensional array.
Thus this patch removes these unnecessary test.

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Scott Jiang <[email protected]>
Signed-off-by: Sonic Zhang <[email protected]>
drivers/spi/bfin_spi6xx.c